<div class="box box-primary" xmlns:th="http://www.thymeleaf.org">
	<div class="box-header with-border">
		<h3 class="box-title">用户信息</h3>
	</div>

	<form id="userForm" class="form-horizontal">
		<input id="type" type="hidden" th:value="${type}"/>
		<input id="userId" type="hidden" th:value="${userId}"/>
		<div class="box-body">
			<div class="form-group">
				<label for="user_code" class="col-md-2 control-label">用户编码<span
					class="colorred">*</span>：
				</label>
				<div class="col-md-4">
					<input id="user_code" class="form-control" type="text"
						name="user_code" bindname="user_code" btvd-type="required"
						btvd-class='btvdclass' maxlength="50" placeholder="用户编码..." />
				</div>
				<label for="user_name" class="col-md-2 control-label">用户名称<span
					class="colorred">*</span>：
				</label>
				<div class="col-md-4">
					<input id="user_name" class="form-control" type="text"
						name="user_name" bindname="user_name" btvd-type="required"
						btvd-class='btvdclass' placeholder="请输入中文名称" maxlength="50" />
				</div>
			</div>
			<div class="form-group">
				<label for="account_name" class="col-md-2 control-label">登陆账号<span
					class="colorred">*</span>：
				</label>
				<div class="col-md-4">
					<input id="account_name" class="form-control" type="text"
						name="account_name" bindname="account_name" btvd-type="required"
						btvd-class='btvdclass' maxlength="50" placeholder="登陆账号..." autocomplete="off"/>
				</div>
			</div>
			<div class="form-group">
				<label for="sex" class="col-md-2 control-label">性别：
				</label>
				<div class="col-md-4">
					<select id="sex" name="sex"
						bindname="sex"></select>
				</div>
				<label for="birth" class="col-md-2 control-label">生日：
				</label>
				<div class="col-md-4">
					<input id="birth" class="form-control  date form_date" type="text"
						name="birth" bindname="birth" readonly/>
				</div>
			</div>
			<div class="form-group">
				<label for="phone" class="col-md-2 control-label">电话：
				</label>
				<div class="col-md-4">
					<input id="phone" class="form-control" type="text"
						name="phone" bindname="phone"/>
				</div>
				<label for="email" class="col-md-2 control-label">电子邮件：
				</label>
				<div class="col-md-4">
					<input id="email" class="form-control" type="text"
						name="email" bindname="email"/>
				</div>
			</div>
			<div class="form-group">
				<label for="address" class="col-md-2 control-label">地址：
				</label>
				<div class="col-md-4">
					<input id="address" class="form-control" type="text"
						name="address" bindname="address"/>
				</div>
				<label for="goodat" class="col-md-2 control-label">擅长：
				</label>
				<div class="col-md-4">
					<select id="goodat" name="goodat" bindname="goodat"></select>
				</div>
			</div>
			<div class="form-group">
				<div id="userTypeDiv">
				<label for="user_type" class="col-md-2 control-label">用户类型<span
						class="colorred">*</span>：
					</label>
					<div class="col-md-4">
						<select id="user_type" name="user_type"
							bindname="user_type"></select>
					</div>
				</div>
				<label class="col-md-2 control-label">职称名称<span class="colorred">*</span>：
				</label>
				<div class="col-md-4">
					<select id="position" name="position_code" bindname="position_code"></select>
				</div>
			</div>
			<div class="form-group">
				<label for="hospital_id" class="col-md-2 control-label">所属医院<span
					class="colorred">*</span>：
				</label>
				<div class="col-md-4">
					<select id="hospital_id" name="hospital_id"
						bindname="hospital_id"></select>
				</div>
				<label for="department_id" class="col-md-2 control-label">所属科室<span
					class="colorred">*</span>：
				</label>
				<div class="col-md-4">
					<select id="department_id" name="department_id"
						bindname="department_id"></select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-2 control-label">业务角色：</label>
				<div class="col-md-10">
					<div id="rolelist" >
					</div>
				</div>
			</div>
		</div>
		<div class="box-footer">
			<button id="cancel" type="button" class="btn btn-default pull-right">取消</button>
			<button id="save" type="button" class="btn btn-info pull-right mr30">保存</button>
		</div>
	</form>
</div>
<script th:if="${projectModel=='dev'}" th:src="@{/static/js/business/sysmanage/user/form.js(v=${#dates.createNow().getTime()})}"></script>
<script th:if="${projectModel=='product'}" th:src="@{/static/js/business/sysmanage/user/form.js}"></script>